package com.validateCodeYzm.zpf.service;

import org.jsoup.Jsoup;

public class MainService {




    public static void main(String[] args) {

        /**
         * 登录服务操作
         */
        LoginService loginService = new LoginService();

        //1.获取密匙
        LoginData loginData = loginService.login("j0056_xy","xy6829");

        System.out.println("登录数据:"+loginData);

        //2.获取cookie
        String cookie8196 = loginService.loin8196(loginData);

        System.out.println("cookie8196:"+cookie8196);

        loginData.setCookie8196(cookie8196);

        /**
         * 8196服务器数据调取
         */

        Service8196 service8196 = new Service8196(loginData);

//
//        System.out.println("主页信息\n"+service8196.toIndex());
//
//        System.out.println("获取数据:\n"+service8196.queryData());

        //获取订单数据
        String confirmOrderList = service8196.getConfirmOrderList();

        System.out.println(confirmOrderList);

    }


    public void getConfirmOrderList(String pageHtml){

      // Jsoup.parse(pageHtml).select("#queryForm").forms()

    }



}
